home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Family.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  1.5 KB  |  58 lines

  1. //
  2. //  $VER: Family.h      1.2 (02 Sep 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  02 Sep 1996 :   1.2 : Neu:
  22. //                        - ClassNum() für Exception-Handling.
  23. //                        Änderungen
  24. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  25. //
  26.  
  27. #ifndef CPP_TWIMUI_FAMILY_H
  28. #define CPP_TWIMUI_FAMILY_H
  29.  
  30. #ifndef CPP_TWIMUI_NOTIFY_H
  31. #include <classes/twimui/notify.h>
  32. #endif
  33.  
  34. #ifndef EXEC_LISTS_H
  35. #include <exec/lists.h>
  36. #endif
  37.  
  38. class MUIFamily : public MUINotify
  39.     {
  40.     protected:
  41.         virtual const ULONG ClassNum() const;
  42.     protected:
  43.         MUIFamily(const STRPTR cl) : MUINotify(cl) { };
  44.         MUIFamily(const MUIFamily &);
  45.         virtual ~MUIFamily();
  46.         MUIFamily &operator= (const MUIFamily &);
  47.     public:
  48.         struct MinList *List() const { return((struct MinList *)get(MUIA_Family_List,NULL)); };
  49.         void AddHead(Object *p) { dom(MUIM_Family_AddHead,(ULONG)p); };
  50.         void AddTail(Object *p) { dom(MUIM_Family_AddTail,(ULONG)p); };
  51.         void Insert(Object *p1, Object *p2) { dom(MUIM_Family_Insert,(ULONG)p1,(ULONG)p2); };
  52.         void Remove(Object *p) { dom(MUIM_Family_Remove,(ULONG)p); };
  53.         void Sort(Object **p) { dom(MUIM_Family_Sort,(ULONG)p); };
  54.         void Transfer(Object *p) { dom(MUIM_Family_Transfer,(ULONG)p); };
  55.     };
  56.  
  57. #endif
  58.